import axios from '@/libs/api.request'

export const getDepartments = ({ parentId }) => {
  const data = {
    parentId
  }
  return axios.request({
    url: '/api/v1/portrait/departments',
    data,
    method: 'get'
  })
}
